import Vue from 'vue'

/**
 * 用户验证服务
 */
export default {
  /**
   * 获取验证码
   * @param {*} [config={}]
   */
  async getValidateCode(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/CommonTool/GetValidateCodeImg', config)
    return result
  },

  /**
   * 发送短信验证码
   * @param {*} [config={}]
   */
  async sendMsg(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/ShortMessage/SendMsg', config);
    return result;
  }
}
